﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;

namespace OnlineMediaAnalyzer.Models
{
    public class FeedParty
    {
        public int ID { get; set; }

        public DateTime LastFetchTime { get; set; }

        public int FeedID { get; set; }
        public virtual Feed Feed { get; set; }

        public int PartyID { get; set; }
        public virtual Party Party { get; set; }

        [Required(ErrorMessage = "Articles count is required")]
        public int ArticlesCount { get; set; }

        [Required(ErrorMessage = "Articles member count is required")]
        public int ArticlesMemberCount { get; set; }

        [Required(ErrorMessage = "Positive articles count is required")]
        public int PosArticlesCount { get; set; }

        [Required(ErrorMessage = "Negative articles count is required")]
        public int NegArticlesCount { get; set; }

        [Required(ErrorMessage = "Date is required")]
        public DateTime Date { get; set; }

        
    }
}